﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Template_Admin.Master" AutoEventWireup="true" CodeBehind="QuanLyCuaHang.aspx.cs" Inherits="Cua_Hang.Admin.QuanLyCuaHang" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .style1
        {
            width: 100%;
            float: left;
        }
        .style2
        { 
           
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <table class="style1">
        <tr>
            <td colspan="2">
                <asp:Label ID="Label3" runat="server" Text="Label"></asp:Label>
                <asp:Label ID="Label1" runat="server" Font-Bold="True" Font-Italic="True" 
                    Font-Size="Larger" ForeColor="#00CC66" Text="Quản Lý Cửa Hàng" 
                    style="color: #3366FF"></asp:Label>
            </td>
        </tr>
        <tr>
            <td class="style2">
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style2">
                <asp:Label ID="Label2" runat="server" Text="Tên Cửa Hàng"></asp:Label>
            </td>
            <td align="left">
                <asp:TextBox ID="tbtencuahang" runat="server" Width="344px"></asp:TextBox>
                <asp:TextBox ID="Id_cuahangthem" runat="server" Width="19px" Visible="false"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td class="style2">
                &nbsp;</td>
            <td align="left">
                
               
                &nbsp;
            </td>
        </tr>
        <tr>
            <td class="style2">
                &nbsp;</td>
            <td align="left">
                <asp:Button ID="btthem" runat="server" Text="Thêm" onclick="btthem_Click1" />&nbsp; &nbsp; 
                <asp:Button ID="Btcapnhat" runat="server" Text="Cập Nhật" 
                    onclick="Btcapnhat_Click" /> &nbsp; &nbsp; 
                </td>
        </tr>
        <tr>
            <td class="style2">
                &nbsp;</td>
            <td align="left">
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style2" colspan="2" align="center">
                <asp:GridView ID="GV_cuahang" AutoGenerateColumns="False" runat="server"  AllowPaging="True"
                   BackColor="White" DataKeyNames="ID_cuahang"
                    BorderColor="#CC9966" BorderStyle="None" BorderWidth="1px" CellPadding="4" 
                    onselectedindexchanged="GV_cuahang_SelectedIndexChanged" 
                    onrowcommand="GV_cuahang_RowCommand" 
                    onpageindexchanged="GV_cuahang_PageIndexChanged" 
                    onpageindexchanging="GV_cuahang_PageIndexChanging" 
                    onselectedindexchanging="GV_cuahang_SelectedIndexChanging1" PageSize="4">
                <Columns>
         
                        <asp:BoundField DataField="ID_cuahang" HeaderText="Mã Cửa Hàng" SortExpression="ID_cuahang" />
                        <asp:BoundField DataField="Ten_cuahang" HeaderText="Tên Cửa Hàng" SortExpression="Ten_cuahang" />
                        <asp:CommandField SelectText="Sửa" HeaderText="Sửa " ShowSelectButton="True" />

    
                        <asp:TemplateField HeaderText="Xoá">
                        <ItemTemplate>
                            <asp:LinkButton ID="LinkButton1" OnClientClick="return confirm('Ban co muon xoa ko?')" runat="server" CommandName="Xoa" CommandArgument='<%# Eval("ID_cuahang")%>'>Xoá</asp:LinkButton>
                        </ItemTemplate>
                        </asp:TemplateField>
                 </Columns>
                    <FooterStyle BackColor="#FFFFCC" ForeColor="#330099" />
                    <HeaderStyle BackColor="#990000" Font-Bold="True" ForeColor="#FFFFCC" />
                    <PagerStyle BackColor="#FFFFCC" ForeColor="#330099" HorizontalAlign="Center" />
                    <RowStyle BackColor="White" ForeColor="#330099" />
                    <SelectedRowStyle BackColor="#FFCC66" Font-Bold="True" ForeColor="#663399" />
                    <SortedAscendingCellStyle BackColor="#FEFCEB" />
                    <SortedAscendingHeaderStyle BackColor="#AF0101" />
                    <SortedDescendingCellStyle BackColor="#F6F0C0" />
                    <SortedDescendingHeaderStyle BackColor="#7E0000" />
                </asp:GridView>
            </td>
        </tr>
        <tr>
            <td class="style2">
              
                </td>
            <td align="left">
                &nbsp;</td>
        </tr>
    </table>
</asp:Content>
